import {
	request
} from '@/common/request.js'

// 登录
export function login(data) {
	return request({
		url: `/login`,
		method: 'post',
		data
	})
}
// 获取用户详细信息
export function getInfo() {
  return request({
    url: '/getInfo',
    method: 'get'
  })
}
//首页入口权限
export function getRouters() {
  return request({
    url: '/getRouters',
    method: 'get'
  })
}
// 退出方法
export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}
// 采购订单查询
export function projectList(data) {
  return request({
    url: '/project/project/list',
    method: 'get',
	data
  })
}
// 销售订单查询 // 未开票订单查询 //订单请购查询  //未入库订单查询
export function projectBaseInfoList(data) {
  return request({
    url: '/projectBaseInfo/projectBaseInfo/list',
    method: 'get',
	data
  })
}
// 订单产品查询 // 排产计划查询  // 工序分配查询  //产品发货情况查询 //项目销售记录查询 //项目经费记录查询 //销售信息管理查询
export function goodsSaleList(data) {
  return request({
    url: '/goodsSale/goodsSale/list',
    method: 'get',
	data
  })
}
// 排产任务查询
export function listSalePro(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/listSalePro',
    method: 'get',
	data
  })
}
// 工单任务查询  已完成工单
export function goodsSaledoGongxuUserList(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/list',
    method: 'get',
	data
  })
}
// 请购技术审核查询 //请购管理查询  //请购采购审核查询
export function lvDoList(data) {
  return request({
    url: '/lvDo/lvDo/list',
    method: 'get',
	data
  })
}
// 请购产品查询
export function goodsSaledoListQinggou(data) {
  return request({
    url: '/goodsSaledo/goodsSaledo/listQinggou',
    method: 'get',
	data
  })
}
// 铁附件拆解查询
export function orderIronRecordList(data) {
  return request({
    url: '/orderIronRecord/orderIronRecord/list',
    method: 'get',
	data
  })
}
// 报工记录查询
export function goodslistAndParent(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/listAndParent',
    method: 'get',
	data
  })
}
// 销售产品物料查询
export function goodsSaleMaterialList(data) {
  return request({
    url: '/goodsSaleMaterial/goodsSaleMaterial/list',
    method: 'get',
	data
  })
}
// 领料明细查询
export function goodsSaleMaterialDetailList(data) {
  return request({
    url: '/goodsSaleMaterialDetail/goodsSaleMaterialDetail/list',
    method: 'get',
	data
  })
}

// 采购管理查询
export function lvBuyList(data) {
  return request({
    url: '/lvBuy/lvBuy/list',
    method: 'get',
	data
  })
}
// 数据字典批量查询
export function typesBatch(data) {
  return request({
    url: '/system/dict/data/typesBatch',
    method: 'post',
	data
  })
}
// 申请付款单列表
export function listassessStatus(data) {
  return request({
    url: '/payApply/payApply/list',
    method: 'get',
	data
  })
}
// 审计不同意
export function payApplyAudit(data) {
  return request({
    url: '/payApply/payApply/audit',
    method: 'put',
    data
  })
}
// 批量审计
export function payApplyAuditBatch(query) {
  return request({
    url: '/payApply/payApply/auditBatch',
    method: 'POST',
    query
  })
}
// 终审通过
export function payApplyAssess(data) {
  return request({
    url: '/payApply/payApply/assess',
    method: 'put',
	data: data
  })
}
// 批量审核
export function payApplyAssessBatch(query) {
  return request({
    url: '/payApply/payApply/assessBatch',
    method: 'POST',
    query
  })
}
// 申请付款详情
export function payApplyDetil(data) {
  return request({
    url: '/payApply/payApply/' + data.id,
    method: 'get',
  })
}
// 发货管理列表
export function lvYifahuoList(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/list',
    method: 'get',
	data
  })
}
// 发货单审核通过
export function lvYifahuoShenhetongguo(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/shenhetongguo/' + data,
    method: 'DELETE',
  })
}
// 发货单申请驳回
export function lvYifahuoBohui(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/bohui',
    method: 'put',
    data
  })
}
// 查询到货记录
export function lvDaohuoList(data) {
  return request({
    url: '/lvDaohuo/lvDaohuo/list',
    method: 'get',
	data
  })
}
// 查询发货记录
export function lvYifahuomingxilList(data) {
  return request({
    url: '/lvYifahuomingxi/lvYifahuomingxi/list',
    method: 'get',
	data
  })
}
// 入库审核列表
export function goodsOrderInList(data) {
  return request({
    url: '/goodsOrderIn/goodsOrderIn/assessList',
    method: 'get',
	data
  })
}
// 入库审核通过
export function goodsOrderInEdit(data) {
  return request({
    url: '/goodsOrderIn/goodsOrderIn/assess',
    method: 'put',
	data
  })
}
// 库存管理列表
export function goodsOrderInListList(data) {
  return request({
    url: '/goodsOrderIn/goodsOrderIn/list',
    method: 'get',
	data
  })
}
// 出入库记录列表
export function lvRukumingxiList(data) {
  return request({
    url: '/lvRukumingxi/lvRukumingxi/list',
    method: 'get',
	data
  })
}
// 产品拆解列表
export function goodsOrderMaterialsList(data) {
  return request({
    url: '/goodsOrderMaterials/goodsOrderMaterials/list',
    method: 'get',
	data
  })
}
// 生产订单列表
export function factoryProduceMainList(data) {
  return request({
    url: '/factoryProduceMain/factoryProduceMain/list',
    method: 'get',
	data
  })
}
// 生产订单明细列表
export function factoryProduceSaleAllList(data) {
  return request({
    url: '/factoryProduceSaleAll/factoryProduceSaleAll/list',
    method: 'get',
	data
  })
}
// 生产订单明细工序列表
export function goodsSaledoGongxuList(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/list',
    method: 'get',
	data
  })
}
// 计件派工
export function addUserTaskPiliang(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/addUserTaskPiliang',
    method: 'post',
	data
  })
}
// 删除工序
export function goodsSaledoGongxuRemove(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/remove/' + data.id,
    method: 'DELETE',
  })
}
// 订单待排产列表
export function goodsSaledoGongxuListSalePro(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/listSalePro',
    method: 'get',
	data
  })
}
// 订单已排产列表
export function goodsSaledoGongxuListSaleProFinish(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/listSaleProFinish',
    method: 'get',
	data
  })
}
// 未完成工单列表
export function goodsSaledoGongxuUserListHavedo(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/listHavedo',
    method: 'get',
	data
  })
}
// 报工提交
export function addBaogong(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/addBaogong',
    method: 'post',
	data
  })
}
// 获取工序列表
export function lnGongxuList(data) {
  return request({
    url: '/lnGongxu/lnGongxu/list',
    method: 'GET',
	data
  })
}
// 产品添加工序
export function addGoodsDoGongxu(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/addGoodsDoGongxu',
    method: 'POST',
	data
  })
}

//查询车间人员列表
export function deptTreeselect(query) {
  return request({
    url: '/system/dept/treeselect',
    method: 'get',
	query
  })
}
// 根据部门查询部门人员列表
export function getUserByDept(data) {
  return request({
    url: '/system/user/getUserByDept',
    method: 'get',
	data
  })
}
// 删除报工
export function removeUpdate(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/removeUpdate/' + data.id,
    method: 'DELETE',
  })
}
// 查询报工详情
export function goodsSaledoGongxuUserMoneyInfo(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/' + data.id,
    method: 'get',
  })
}
// 质检
export function editZhijian(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/editZhijian',
    method: 'put',
	data
  })
}
// 巡检修改
export function goodsSaledoGongxuUserMoneyXunJian(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/edit',
    method: 'put',
	data
  })
}

// 查询报工详细列表
export function listByGongxuId(query) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/listByGongxuId',
    method: 'get',
	query
  })
}
// 工单转派
export function addUserTaskZhuanpai(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/addUserTaskZhuanpai',
    method: 'POST',
	data
  })
}
// 工单修改
export function goodsSaledoGongxuUserEdit(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/updateCounts',
    method: 'put',
	data
  })
}
// 到货过磅单
export function editGuobangdan(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/editGuobangdan',
    method: 'put',
	data: data
  })
}
// 上传到货回执
export function daohuohuizhi(data) {
  return request({
    url: '/lvYifahuo/lvYifahuo/daohuohuizhi',
    method: 'put',
	data
  })
}
// 查询报工
export function goodsSaledoGongxuUserId(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/' + data.id,
    method: 'get',
  })
}
// 到货明细查询
export function lvDaohuoDetail(data) {
  return request({
    url: '/lvDaohuoDetail/lvDaohuoDetail/list',
    method: 'get',
	data
  })
}
// 到货产品
export function lvDaohuoDetailList(data) {
  return request({
    url: '/lvDaohuoDetail/lvDaohuoDetail/list',
    method: 'get',
	data
  })
}
// 上传过磅单
export function lvDaohuoUpdate(data) {
  return request({
    url: '/lvDaohuo/lvDaohuo/edit',
    method: 'put',
	data
  })
}
// 报销列表
export function goodsReimbursementList(query) {
  return request({
    url: '/goodsReimbursement/goodsReimbursement/list',
    method: 'get',
	query
  })
}
// 申请信息
export function goodsReimbursementId(data) {
  return request({
    url: '/goodsReimbursement/goodsReimbursement/' + data.id,
    method: 'get',
	data
  })
}
// 报销明细
export function goodsFeeList(data) {
  return request({
    url: '/goodsFee/goodsFee/list',
    method: 'get',
	data
  })
}
// 报销审核
export function goodsReimbursementEdit(data) {
  return request({
    url: '/goodsReimbursement/goodsReimbursement/edit',
    method: 'put',
	data
  })
}
// 发放记录
export function goodsReimbursementDetailList(data) {
  return request({
    url: '/goodsReimbursementDetail/goodsReimbursementDetail/list',
    method: 'get',
	data
  })
}
// 删除发放记录
export function goodsReimbursementDetailDelete(data) {
  return request({
    url: '/goodsReimbursementDetail/goodsReimbursementDetail/' + data.id,
    method: 'DELETE',
  })
}
// 新增发放记录
export function goodsReimbursementDetailAdd(data) {
  return request({
    url: '/goodsReimbursementDetail/goodsReimbursementDetail/add',
    method: 'POST',
	data
  })
}
// 采购订单产品明细
export function goodsSaleListProject(data) {
  return request({
    url: '/goodsSale/goodsSale/listProject',
    method: 'get',
	data
  })
}
// 采购订单产品明细
export function goodsSalebuyallList(data) {
  return request({
    url: '/goodsSalebuyall/goodsSalebuyall/list',
    method: 'get',
	data
  })
}
// 请购采购审核
export function listHaveBuy(data) {
  return request({
    url: '/lvDo/lvDo/listHaveBuy',
    method: 'get',
	data
  })
}
// 采购审核产品明细
export function goodsSaledoList(data) {
  return request({
    url: '/goodsSaledo/goodsSaledo/list',
    method: 'get',
	data
  })
}
// 采购拒审核
export function lvDoBuyReject(data) {
  return request({
    url: '/lvDo/lvDo/buyReject',
    method: 'put',
	data
  })
}
// 采购同意审核
export function goodsSaledoSubSuccess(data) {
  return request({
    url: '/goodsSaledo/goodsSaledo/subSuccess/' + data.id,
    method: 'get',
  })
}
// 技术同意审核
export function subSuccessToCaigou(data) {
  return request({
    url: '/goodsSaledo/goodsSaledo/subSuccessToCaigou/' + data.id,
    method: 'get',
  })
}

// 查询待排产数据根据id
export function listSaleProByPhone(data) {
  return request({
    url: '/goodsSaledoGongxu/goodsSaledoGongxu/listSaleProByPhone/' + data.id,
    method: 'get',
  })
}

// 查询待排产数据根据id
export function listAndParent(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/listAndParent',
    method: 'get',
	data
  })
}
// 修改单价
export function goodsSaledoGongxuUserPriceEdit(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/edit',
    method: 'PUT',
	data
  })
}
// 修改报工信息
export function editgdBaogong(data) {
  return request({
    url: '/goodsSaledoGongxuUserMoney/goodsSaledoGongxuUserMoney/editBaogong',
    method: 'PUT',
	data
  })
}
// 杂活计件派工
export function addUserTaskPiliangZahuo(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/addUserTaskPiliangZahuo',
    method: 'POST',
	data
  })
}
// 杂活计时派工
export function addUserTaskPiliangJishiZahuo(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/addUserTaskPiliangJishiZahuo',
    method: 'POST',
	data
  })
}
export function addUserTaskJishiPiliang(data) {
  return request({
    url: '/goodsSaledoGongxuUser/goodsSaledoGongxuUser/addUserTaskJishiPiliang',
    method: 'POST',
	data
  })
}

// 各省项目情况数据统计
export function listByArea(data) {
  return request({
    url: '/projectBaseInfo/projectBaseInfo/listByArea',
    method: 'get',
	data
  })
}
// 项目进度状态统计
export function listByStatusGroup(data) {
  return request({
    url: '/projectBaseInfo/projectBaseInfo/listByStatusGroup',
    method: 'get',
	data
  })
}
// 项目来源数据统计
export function listBySourceGroup(data) {
  return request({
    url: '/projectBaseInfo/projectBaseInfo/listBySourceGroup',
    method: 'get',
	data
  })
}
// 近五年营收数据统计
export function listByYearGroup(data) {
  return request({
    url: '/projectBaseInfo/projectBaseInfo/listByYearGroup',
    method: 'get',
	data
  })
}
// 申请付款单详情
export function getWithShippingFee(data) {
  return request({
    url: '/payApply/payApply/getWithShippingFee/' + data.id,
    method: 'get',
  })
}
// 获取百分比
export function getConfigKey(data) {
  return request({
    url: '/system/config/configKey/' + data.key,
    method: 'get'
  })
}
// 开票金额查询
export function goodsInvoiceApplyDetailList(data) {
  return request({
    url: '/goodsInvoiceApplyDetail/goodsInvoiceApplyDetail/list',
    method: 'get',
	data
  })
}
// 回款信息
export function goodsInvoiceDetailList(data) {
  return request({
    url: '/goodsInvoiceDetail/goodsInvoiceDetail/list',
    method: 'get',
	data
  })
}
// 招标列表
export function lnZhaobiaoList(data) {
  return request({
    url: '/lnZhaobiao/lnZhaobiao/list',
    method: 'get',
	data
  })
}
// 中标列表
export function lnZhaobiaolistZb(data) {
  return request({
    url: '/lnZhaobiao/lnZhaobiao/listZb',
    method: 'get',
	data
  })
}
// 巡检生产过程外观检测列表
export function factoryTestSurfaceList(data) {
  return request({
    url: '/factoryTestSurface/factoryTestSurface/list',
    method: 'get',
	data
  })
}
// 巡检生产过程外观检测详情
export function factoryTestSurfaceBuyId(data) {
  return request({
    url: '/factoryTestSurface/factoryTestSurface/' + data.id,
    method: 'get',
	data
  })
}
// 新增尺寸
export function factoryTestSizeAdd(data) {
  return request({
    url: '/factoryTestSize/factoryTestSize/add',
    method: 'POST',
	data
  })
}

// 删除生产过程检测
export function factoryTestSurfaceDele(data) {
  return request({
    url: '/factoryTestSurface/factoryTestSurface/' + data.id,
    method: 'DELETE',
	data
  })
}
// 巡检生产过程尺寸检测列表
export function factoryTestSizeList(data) {
  return request({
    url: '/factoryTestSize/factoryTestSize/list',
    method: 'get',
	data
  })
}
// 巡检生产过程外观检测详情
export function factoryTestSizeBuyId(data) {
  return request({
    url: '/factoryTestSize/factoryTestSize/' + data.id,
    method: 'get',
	data
  })
}
// 修改外观
export function factoryTestSurfaceEdit(data) {
  return request({
    url: '/factoryTestSurface/factoryTestSurface/edit',
    method: 'PUT',
	data
  })
}
// 修改尺寸
export function factoryTestSizeEdit(data) {
  return request({
    url: '/factoryTestSize/factoryTestSize/edit',
    method: 'PUT',
	data
  })
}
// 新增外观
export function factoryTestSurfaceAdd(data) {
  return request({
    url: '/factoryTestSurface/factoryTestSurface/add',
    method: 'POST',
	data
  })
}
// 删除生产过程检测
export function factoryTestSizeDele(data) {
  return request({
    url: '/factoryTestSize/factoryTestSize/' + data.id,
    method: 'DELETE',
	data
  })
}

